<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            font-size: 0;
            /* word-spacing: -8px; */
        }
        
        span {
            width: 50px;
            height: 30px;
            background: pink;
            font-size: 14px;
            /* margin-left: -5px; */
        }
    </style>
</head>

<body>
    <div>
        <span>文字</span>
        <span>文字</span>
        <span>文字</span>
        <span>文字</span>
        <span>文字</span>
    </div>
</body>

</html>